import Vue from 'vue';
import WebSocketService from './WebSocketService'; // 确保路径正确

// 创建 WebSocketService 实例并挂载到 Vue 原型上
// const webSocketService = new WebSocketService('ws://192.168.30.8:8282'); //hc
const webSocketService = new WebSocketService('ws://192.168.101.90:8282');	//home
Vue.prototype.$webSocketService = webSocketService;

// 连接 WebSocket
webSocketService.connect();
